home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / progtool / c / gcc / gcc258s.zoo / README.TOS < prev    next >
Encoding:
Text File  |  1994-01-30  |  4.0 KB  |  114 lines

  1. This is the README file for the GNU native/cross compiler. Diffs are
  2. with respect to GCC V2.5.5
  3.  
  4.     -configuration:
  5.         copy all the files from the gcc v2.5.5 distribution
  6.           into a directory called SRC (i created symbolic links between
  7.           the files).
  8.         copy all the files from the gcc v2.5.5 distribution
  9.              sub-directory config into SRC/config
  10.         copy all the files in this directory into SRC.
  11.         copy xm-atari.h and atari.h into SRC/config/m68k
  12.         cd to SRC
  13.         Apply the diffs using larry walls patch program
  14.             patch -p < gcc-255.diff
  15.         make the following links in SRC
  16.             config.h to config/m68k/xm-atari.h
  17.             tconfig.h to config/m68k/xm-atari.h
  18.             hconfig.h to config/m68k/xm-atari.h
  19.             tm.h to config/m68k/atari.h
  20.             aux-output.c to config/m68k/m68k.c
  21.             md to config/m68k/m68k.md
  22.  
  23.         edit Makefile.* to make sure the following
  24.         are defined appro.:
  25.         CROSSDIR -- the home directory of the cross dev. system
  26.  
  27.         look over atari.h and xm-atari.h
  28.  
  29.         edit config/m68k/atari.h and at the top of the file set
  30.         TARGET_DEFAULT appropriately. this file is now
  31.         conditionalized for various combinations of 
  32.         68000/68020/68881
  33.  
  34.     -if you already have a native tos-gcc and want to use
  35.      that to make new tos executables, skip the next few
  36.      steps that make the cross-compiler system.
  37.      Please note that you will not be able to compile the
  38.      compiler itself on a St with less that 2.5 M of memory.
  39.  
  40.     -make cross compiler by
  41.         make -f Makefile.cross
  42.     will make and install gcc-cpp.ttp, gcc-cc1.ttp  and gcc.ttp
  43.  
  44.     -clean out the directory by
  45.         make -f Makefile.cross clean
  46.     - go and make a cross-gas cross-ld and cross-as
  47.     - make the tos gcc libraries using the cross-compiler
  48.       system you made above.
  49.  
  50.     - to make atari st executables
  51.        - make and install cross compiler as above (or use your native
  52.         tos-gcc compiler)
  53.        - make by
  54.         make -f Makefile.st
  55.  
  56. Please note: *.c files in this directory are the already patched files
  57. for the gcc-src directory.
  58.  
  59. which makefile to use:
  60.  
  61.  
  62. On a (BSD unix host)       On a HPUX host
  63. (Only sun sparc tested)
  64.  
  65. Makefile.cross      Makefile.hp        to make CROSS-gcc parts
  66. Makefile.st        Makefile.st.hp        to make NATIVE-gcc parts
  67.  
  68. NOTE: Gmakefile* do NOT exist any more
  69.  
  70. NATIVE parts are 68k code that run on the atari.
  71. CROSS parts run on the HOST and not on the atari.
  72.  
  73. --
  74. bang:   uunet!cadence!bammi            jwahar r. bammi
  75. domain: bammi@cadence.com
  76. GEnie:    J.Bammi
  77. CIS:    71515,155
  78.  
  79. note about gcc/precompiled headers/unixmode:
  80.  
  81. Return-Path: <uunet!iti.informatik.th-darmstadt.de!alexlehm>
  82. From: uunet!iti.informatik.th-darmstadt.de!alexlehm
  83. Subject: GCC 2.x problem with 'precompiled headers' solved
  84. To: bammi
  85. Date: Fri, 19 Jun 92 14:30:19 MET DST
  86. X-Mailer: ELM [version 2.3 PL11]
  87.  
  88. Hi Jwahar,
  89.  
  90.   I just build a cross compiler for GCC2.2.2 for my new NeXTstation and I must
  91. say I'm rather pleased with the speed I get with this hardware.
  92. I explored the problem with include filesname and I think I came up with a
  93. solution:
  94.  
  95.  The new GCC already accepts precompiled headers even if he cannot create any.
  96. This is done by searching for file with an added number to the normal include
  97. name. e.g. config.h becomed config.h0, config.h1 etc. This works just fine
  98. with the native compiler as long as the extension of the name is less than
  99. three chars. If this is the case, a filename becomes something like this:
  100. atari.trm0. If UNIXMODE is set right this will result in no problem since the
  101. name can be distinguished from the normal name, but if only normal TOS filenames
  102. are allowed, the original header file is found under this name and he tries to
  103. load the file as precompiled header. This of course fails and he reties with
  104. atari.trm1 and so on. In other words, the compiler just hangs up.
  105. I changed the code to check whether UNIXMODE is set and if the filename has
  106. a too long extension. In this case the name if converted to something like
  107. atari.tr0. The same conversion will have to be made when dumping headers, but
  108. as far as I tried this feature doesn't work up to now.
  109.  
  110. the diff is with respect to gcc.2.2.1 pl1 (the one that came with update22).
  111.  
  112.                         bye ... Alexander
  113.  
  114.